import {MessageItemType} from "@/types/componentsType";

export const customVariable = defineStore('variable', () => {
    const img_url = "https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"

    return {
        img_url
    }
});

// @ts-ignore
export const globalVariable = defineStore('globalVariable', () => {
    const messageInfo = ref<MessageItemType>()
    const setMessageInfo = (d: MessageItemType) => {
        messageInfo.value = {...d}
    }
    return {
        messageInfo,
        setMessageInfo
    }
});